import re


def get_char(source_text):
    v_list = re.split('[,.;"\s]\s*', source_text)
    print(v_list)
    v_dict = dict()
    for word in v_list:
        if word in v_dict:
            v_dict[word] += 1
        else:
            v_dict[word] = 1
    v_res = sorted(v_dict.items(), key=lambda item: item[1], reverse=True)
    return v_res


if __name__ == '__main__':
    with open('test.txt', 'r') as f:
        vtext = f.read()
    print(get_char(vtext))
